{% extends 'base.html' %}

{% block content %}

<div class="container" style="margin-top: 100px">
  <form method="post">
    <div class="form-group">
      <label for="title">标题</label>
      <input type="text" name="title" placeholder="标题" class="form-control"
        value="{{ request.form['title'] or post['title'] }}">
      </input>
    </div>

    <div class="form-group">
      <label for="content">内容</label>
      <textarea name="content" placeholder="Post content" class="form-control"
        style="height: 400px">{{ request.form['内容'] or post['content'] }}</textarea>
    </div>
    <div class="form-group">
      <button type="submit" class="btn btn-primary">提交</button>
    </div>
  </form>
  <hr>
</div>
{% endblock %}